const express = require('express')
const router = express.Router()
const user = require('../controller/user')

router.get('/userInfo', (req, res, next) => {
    user.userInfo(req.body).then((data) => {
        res.json(data)
    })
})

router.get('/userList', (req, res, next) => {
    user.userList(req.body).then((data) => {
        res.json(data)
    })
})


module.exports = router